{{-- 模板名字 --}} 
@extends('Layout/HomeBase')


{{-- 页面名字 --}}
@section('title', '积分兑换') 



{{-- 加载css/js文件 --}} 
@section('css')
	<link href="{{asset('Home/css')}}/seastyle.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="{{asset('Home/js')}}/script.js"></script>
@endsection {{-- 网页主体 --}}





@section('main')

<!-- <div class="search"> -->
	<div class="search-list">
		<div class="nav-table">
			<div class="long-title"><span class="all-goods">积分商城</span></div>
			<div class="nav-cont">
				<ul>
					<li class="index">
						<a href="{{url('/')}}">优购首页</a>
					</li>
					
				</ul>
			</div>
		</div>
	</div>
	<b class="line clear" ></b>
</div>
<div class="am-g am-g-fixed">
	<div class="am-u-sm-12 am-u-md-12">
		<div class="theme-popover">
			
		</div>
		<div class="search-content">
			
			<div class="clear"></div>

			<ul class="am-avg-sm-2 am-avg-md-3 am-avg-lg-4 boxes">
			@foreach ($goods as $v)
				@if ($v->status !== 3)
				<li>
					<div class="i-pic limit">
						<img src="{{$v->image}}" title="{{$v->detail}}"/>
						<p class="title fl">{{$v->ig_name}}</p>
						<p class="price fl">
							<b>积分</b>
							<strong>{{$v->integral_price}}</strong>
						</p>
						<p class="number fl">
							<span><a href="{{url('/Home/exchangeAddress')}}/{{$v->id}}">兑换</a></span>
						</p>

					</div>
					
				</li>
				@endif
			@endforeach
			</ul>
				

		</div>
		<div class="clear"></div>

		
	</div>
</div>


@endsection 



{{-- 页脚js代码 --}}
@section('bottom-js')

@if (session('iprice'))
   	<script>
        alert("{{ session('iprice') }}");
    </script>
@endif

<script>
	window.jQuery || document.write('<script src="{{asset('	Home / js ')}}/jquery-1.9.min.js"><\/script>');
</script>
<script type="text/javascript" src="{{asset('Home/js')}}/quick_links.js"></script>

@endsection